package com.william.jdbcplus.test.entity;

import com.william.jdbcplus.common.annotation.*;
import com.william.jdbcplus.common.entity.Entity;
import com.william.jdbcplus.common.enums.IdType;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @Author niliwei
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@Table("db_dict_item")
@ApiModel("字典详情表")
public class DbDictItem implements Entity {

    @TableId(type = IdType.GUID)
    private String id;

    @TableFk(pkEntity = DbDict.class, pkField = "id")
    @TableColumn(remarks = "字典id")
    @TableFinal
    private String dictId;

    @TableColumn(remarks = "字典项文本")
    private String itemText;

    @TableColumn(remarks = "字典项值")
    private String itemValue;

    @TableColumn(remarks = "描述")
    private String description;

    @TableColumn(remarks = "排序")
    private Integer sortOrder;

    @TableColumn(remarks = "状态", comment = "1启用 0不启用")
    private Integer status;

}
